<?php /* Smarty version 2.6.25, created on 2012-12-13 11:48:31
         compiled from tpl/index.html */ ?>
<html lang="es">
<head>
<title>Operacion Boda</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/operacionboda.css" />
        <script type='text/javascript' src='js/jquery.js'></script>
</head>
<body>
	<div id="content">
		<div id="topcontent">
		</div>
		<div id="botoncontent">
				<div id="bcontentleft">
                                            
				</div>
				<div id="bcontentmiddle">
				<table >
				<form name='form1' action='' method='get'>
						<tr>
						<td><img src="imagenes/txt_nombre.jpg" width='62' ></td>
						<td><input type='text' name='nombre' id='nombre' required></td>
						</tr>
					
						<tr>
						<td><img src="imagenes/txt_email.jpg" width='62' ></td>
						<td><input type='text' name='email' id='email' required></td>
						</tr>

						<tr>
						<td colspan=2 style='text-align:right'><img src='imagenes/bot_unirme.jpg' width='76' id='registrarse'></td>
						</tr>
		
	</form>

					</table>
<div id='mensaje'></div>
				</div>
				<div id="bcontentright">
										
				</div>
		</div>
	</div>
	<div id="content2">
		<div id="topcontent2">
		</div>
		<div id="botoncontent2">
				<div id="bcontentleft">
					
				</div>
				<div id="bcontentmiddle2">
				</div>
				<div id="bcontentright">
										
				</div>
		</div>
	</div>
</body>
<script type="text/javascript" charset="utf-8">
	<!--
$(document).ready(function(){
	$("#registrarse").click(function(){
		nombre =  $('#nombre').val()
		email =  $('#email').val()
		$.ajax({
                type: "POST",
                data: "nombre=" + nombre + "&email=" + email,
                url: "registrarse.php",
                beforeSend: function(){
                    var enviando = "<div style='color:red'>Consultando info...</div>";
                    $("#info").html( enviando );
                },
				 success: function( data ){
					data = JSON.parse(data)
					if( data.resultado == 'ok' ){
					 	$('#content').css('display','none');
					 	$('#content2').css('display','block');
					}else{
					$("#mensaje").css('display','block'); 
					$("#mensaje").html("verificar datos").fadeOut('slow'); 

					}

				 }
            });
	});	
});
	-->
</script>
</html>